package com.yc.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @ClassName Resfood
 * @since: 2023/8/19 19:06
 * @auth: kirito
 * @description:
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Resfood implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer fid;
    private String fname;
    private Double normprice;
    private Double realprice;
    private String detail;
    private String fphoto;

    //增加一个属性  点赞数  属性redis提供
    @TableField(select = false)  //mybatis操作时忽略
    private Long praise;


}
